﻿/****************
 * Copyright 2016 Brian Tabone
 * Licensed under the Apache 2.0 License
 * http://www.apache.org/licenses/LICENSE-2.0
 * 
 * TestProperty.cs
 * Demonstrates running business logic after setting the value
 * 8/27/2016
 */

using System;

namespace IAO.Common.ServiceFramework.RuntimeProperties
{
    public class TestProperty : Property
    {
        public TestProperty(int id, string classStr, string name, string value, string type, bool isReadOnly)
            : base(id, classStr, name, value, type, isReadOnly)
        {
            // Nothing else to do, just pass through constructor
        }

        public override void SetValue(string value)
        {
            base.SetValue(value);

            Console.WriteLine($"The test property has been set to {value}");
        }
    }
}